#pragma once

static char s_cDataUpdate = 0;
static int iComPort = 4;
static int iBaud = 9600;
static int iAddress = 0x50;

class WitSensor
{
private:
	float a[3] = { 0 }, w[3] = { 0 }, Angle[3] = { 0 }, h[3] = { 0 };
public:
	WitSensor() {}
	virtual ~WitSensor();
	
	bool Init();
	void CollectData();

	void GetAcceleration(float& x, float& y, float& z);
	void GetAngle(float& x, float& y, float& z);
};